package com.example.mybaitsplusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("authorities")
public class authorities {

   @TableId(type = IdType.AUTO)
   private long id;
   private String username;
   private String authority;

    public authorities(String username, String roleAdmin) {
        this.username=username;
        this.authority=roleAdmin;
    }
}
